package cn.gbase.jiangsu.data.transfer.bean;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import cn.gbase.jiangsu.data.transfer.validation.annotation.Validations;

/**
 * 商品分类树.
 * 
 */
@Table("product_sort_tree")
public class ProductSortTree extends BaseDto {

	/**
	 * ID.
	 */
	@Column
	@Id
	private int id;

	/**
	 * 树名称.
	 */
	@Column
	@Validations(required = true, strLen = { 1, 50 }, errorMsg = "分类名称应为1-50个字符。")
	private String name;

	/**
	 * 父ID.
	 */
	@Column("company_id")
	private int companyId;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCompanyId() {
		return companyId;
	}

	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}
	

}
